<template>
	<view class="pageItem">
	<!-- 	<image class="bg_img" src="../../static/bg02.png"></image> -->
		<view class="headBar">
			<!-- <image class="h_bg_img" src="../../static/bg02.png"></image> -->
			<view class="h_bg_img"></view>
			<view class="h_con">
				<view class="h_title">汉家承</view>
				<view class="h_input_box">
					<input class="h_input" type="text" v-model="kw" placeholder="搜索你想要的商品"  @confirm="search"  @click="search"  confirm-type="search"/>
					<image class="h_logo" src="../../static/index/seach.png" mode="widthFix"></image>
				</view>
			</view>
		</view>
		<view class="contentItem">
			<view class="ad_item">
				<!-- <view class="hot_item">
					<swiper class="hot_swiper_box" :circular="true" :autoplay="true" :interval="2000" :duration="200" :vertical='true'>
						<block v-for="(item,index) in user" :key="'hot_'+index">
							<swiper-item class="hot_s_box">
								<view class="hot_txt">恭喜：{{item.name}}注册成功</view>
							</swiper-item>
						</block>
					</swiper>
				</view> -->
				<view class="ad_img_item">
					<swiper class="ad_swiper_box" :circular="true" :autoplay="true" :interval="3000" :duration="200" indicator-dots="true" indicator-color="#d1d1d1" indicator-active-color="#FF193E">
						<block v-for="(item, index) in adImgArr" :key="'ad_'+index">
							<swiper-item class="ad_s_box" :data-item="item"  @click="gotopage3">
								<image class="ad_img" :src="item.image"></image>
							</swiper-item>
						</block>
					</swiper>
				</view>
			</view>
			<view class="main_item">
				
				<!-- <view class="menu_item">
					<view class="menu_box" v-for="(item,index) in menuArr" :key="'menu_'+index" :data-item="item" @click="goClass">
						<image class="m_img" :src="item.image"></image>
						<view class="m_txt">{{ item.name }}</view>
					</view>
				</view> -->
				
				<view class="menu_item">
					<view class="menu_box" data-url="/pages/index/rank" @click.stop="gotopage">
						<image class="m_img" src="../../static/order/list05.png"></image>
						<view class="m_txt">销售排行</view>
					</view>
					<view class="menu_box" data-url="/pages/notice/noticecontent?id=33" @click.stop="gotopage">
						<image class="m_img" src="../../static/order/list06.png"></image>
						<view class="m_txt">加盟政策</view>
					</view>
					<view class="menu_box" data-url="/pages/index/team" @click.stop="gotopage">
						<image class="m_img" src="../../static/order/list07.png"></image>
						<view class="m_txt">团队加入</view>
					</view>
					<view class="menu_box" data-url="/pages/notice/noticecontent?id=22" @click.stop="gotopage">
						<image class="m_img" src="../../static/order/list08.png"></image>
						<view class="m_txt">关于我们</view>
					</view>
				</view>
				
				<view class="new_item">
					<view class="new_tit_logo iconfont3">&#xe647;</view>
					<swiper class="new_swiper_box" :autoplay="true" :interval="2500" :circular="true" :vertical="true">
						<block v-for="(item, index) in newArr" :key="'new_'+index">
							<swiper-item class="n_s_box" :data-url="'/pages/notice/noticecontent?id=' + item.id" @click="gotopage">
								<view class="new_txt">{{item.title}}</view>
							</swiper-item>
						</block>
					</swiper>
					<view class="n_more iconfont3" @tap="openNews">&#xe601;</view>
				</view>
				<!-- <view class="re_item" v-if='tg'>
					<view class="re_title">
						<view class="re_t_t">精选商品</view>
						<view class="re_more" :data-url="'/pages/list/list?marks=2'" @click="gotopage">查看全部<view class="iconfont re_t_icon icon-xiangyou1"></view></view>
					</view>
					<view class="re_con">
						<view class="re_goods" v-for="(item,index) in new1" :key="'re_g_'+index" :data-url="'/pages/goods/goods?id=' + item.goods_id" @click.stop="gotopage">
							<image class="r_g_img" :src="item.image" ></image>
							<view class="r_g_tit">{{ item.name }}</view>
							<view class="r_g_price" v-if='item.pay_type==1'>
								<view class="r_price1">￥{{ item.price }}</view>
								<view class="r_price2">{{ item.sales }}人付</view>
							</view>
							<view class="r_g_price" v-if='item.pay_type==2'>
								<view class="r_price1">积分：{{ item.price }}</view>
								
							</view>
							<view class="r_g_btn">立即购买</view>
						</view>
					</view>
				</view> -->
				<!-- <view class="banner_item" v-if="gd.length>0"  @click="gotopage1(gd[0])">
					<image class="b_img" :src="gd[0].image" mode="widthFix"></image>
				</view> -->
				<view class="class_item">
					<view class="class_title">
						<image class="c_t_logo" src="../../static/index/hot_logo.png" mode="widthFix"></image>
						<!-- <view class="c_icon iconfont3">&#xe606;</view> -->
						<view class="c_t_t">精选热销产品</view>
						<view class="c_more" :data-url="'/pages/list/list?marks=3'" @click="gotopage">查看全部<view class="iconfont c_m_icon icon-xiangyou1"></view></view>
					</view>
					<view class="c_list">
						<!-- <view class="ad_box" v-if="yq.length>0"  @click="gotopage1(yq[0])">
							<image class="ad_img" :src="yq[0].image" mode="widthFix"></image>
						</view> -->
						<view class="c_l_box" v-for="(item,index) in yx" :key="'c_goods_'+index" :data-url="'/pages/goods/goods?id=' + item.goods_id" @click.stop="gotopage">
							<image class="c_l_b_img" :src="item.image"></image>
							<view class="c_l_b_tit">{{ item.name }}</view>
							<!-- <view class="c_l_b_p1">
								<label class="p1_t1">¥</label>
								<view class="p1_t2">{{ item.price }}</view>
								<view class="p1_logo">到手价</view>
							</view>
							<view class="c_l_b_p2">
								<view class="p2_t1">¥{{ item.price_ori}}</view>
								<view class="p2_t2">已售{{ item.sales }}件</view>
							</view> -->
						</view>
					</view>
				</view>
			</view>
		</view>
		<!-- <view class="footer">
			<view class="txt2">
				<label class="t_name">汉家承</label>
			</view>
			<view class="txt1">湖南紫萱露贸易有限公司</view>
			<view class="txt1">联系电话：17267099057</view>
			<view class="txt1">备案号：湘ICP备2023016218号-1</view>
		</view> -->
		<!-- <view class="mask" v-if="ad_show">
			<view class="mask_box">
				<view class="mask_con">
					<view class="mask_head">
						<view class="mask_h_t">{{ad_title}}</view>
						<image class="mask_h_img" src="../../static/ad_lb.png" mode="widthFix"></image>
					</view>
					<view class="mask_txt">
						<view class="mask_node" v-html="ad_content"></view>
					</view>
					
					<view class="mask_btn">
						<view class="m_btn" @click="adBoxChange1(false)">知道了</view>
						<view class="m_btn" @click="adBoxChange(false)">签到得积分</view>
					</view>
				</view>
			</view>
		</view> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				slider:[],
				tslider:[],
				kw: '',
				keyArr:['热搜词','热搜词','热搜词','热搜词','热搜词','热搜词','热搜词','热搜词','热搜词','热搜词'],
				adImgArr:[],
				menuArr:[],
				classArr:[
					{name:'居旅天下',image:'../../static/index/class_01.png'},
					{name:'视频播放',image:'../../static/index/class_02.png'},
					{name:'商家入驻',image:'../../static/index/class_03.png'},
					{name:'Ti人工智能',image:'../../static/index/class_04.png'}
				],
				newArr:[],
				user:[],
				tg:[],
				hot:[],
				gd:[],
				yq:[],
				yi:[],
				new1:[],
				yx:[],
				l_index:0,
				ad_show:false,
				ad_content:'',
				ad_title:''
			}
		},
		onLoad(e) {
			if (e.id) {
				uni.setStorageSync('tj', e.id);
			}
			this.loadData();
		},
		onShareAppMessage(res) {
		            console.log("分享", res)
		      
		            return{
		                title: "汉家承",
		                path: "/pages/index/index",
		                imageUrl: '',
		                desc: "",
		                content: "",
		                success(res){
		                    uni.showToast({
		                        title:'分享成功'
		                    })
		                },
		                fail(res){
		                    uni.showToast({
		                        title:'分享失败',
		                        icon:'none'
		                    })
		                }
		            }
		        },
				onShareTimeline(res) {
				            console.log("分享", res)
				      
				            return{
				                title: "汉家承",
				                path: "/pages/index/index",
				                imageUrl: '',
				                desc: " ",
				                content: " ",
				                success(res){
				                    uni.showToast({
				                        title:'分享成功'
				                    })
				                },
				                fail(res){
				                    uni.showToast({
				                        title:'分享失败',
				                        icon:'none'
				                    })
				                }
				            }
				        },
		methods: {
			goClass(e){
				if(e.currentTarget.dataset.item.child.length == 0){
					uni.navigateTo({
						url: '/pages/list/list?cid='+e.currentTarget.dataset.item.cid
					});
				}else{
					uni.navigateTo({
						url: '/pages/index/class?cid='+e.currentTarget.dataset.item.cid
					});
				}
			},
			adBoxChange1(flag){
				this.ad_show = flag;
			},
			adBoxChange(flag){
				let me = this;
				
				me.Net._get('sign',{},(res)=>{
					if(res.code ==1){
						me.sign = true;
						uni.showToast({
							title:res.msg,
							icon:"none",
							
						})
					}
					else
					{
						uni.showToast({
							title:res.msg,
							icon:"none",
							
						})
					}
				});
				this.ad_show = flag;
			},
			loadData() {
				let me = this;
				me.Net._get('main', null, res => {
					if (res.code == 1) {
						// me.hd = res.data.hd;
						// me.ca = res.data.ca;
						 me.hot = res.data.hot;
						  me.gd = res.data.gd;
						   me.yq = res.data.yq;
						      me.yi = res.data.yi;
						 me.new1 = res.data.new;
						 me.slider = res.data.slider;
						  me.tslider = res.data.top_slider;
						  me.tg = res.data.tg;
						//console.log(res.data.yx)
						let items = res.data.yx;
						let temp = [];
						let temp1 = [];
						for (var i = 0; i < items.length; i++) {
							i % 2 == 0 ? temp.push(items[i]) : temp1.push(items[i])
						}
						 me.yx = temp1.concat(temp);
						// me.grid = res.data.grid;
						me.menuArr = res.data.main_cate;
						me.adImgArr = res.data.ads;
						//console.log(me.adImgArr,res.data.notice)
						me.newArr = res.data.notice;
							me.user = res.data.user;
						// me.order = res.data.order;
						// me.f = res.data.f;
			
						if (res.data.tc) {
							me.ad_content = res.data.tc.content;
							me.ad_title = res.data.tc.title;
							me.ad_show = true;
						}
						// if (res.data.gg2) {
						// 	me.gg2 = res.data.gg2;
						// 	me.pupu02 = true;
						// }
						// console.log(me.gg);
					}
				});
			},
			search() {
				var that = this;
				if (that.kw === '') {
					uni.showToast({
						title:'请输入您想要的商品',
						duration:2500,
						icon:'none'
					})
					return;
				}
				uni.navigateTo({
					url: '/pages/list/list?kw=' + that.kw
				});
			},
			openNews() {
				uni.navigateTo({
					url: '/pages/news/news'
				});
			},
			gotopage(e) {
				let url = e.currentTarget.dataset.url;
				uni.navigateTo({
					url: url
				});
			},
		onPullDownRefresh() {
			let me = this; // 下拉监听事件
			console.log('refresh');
			setTimeout(function() {
				uni.stopPullDownRefresh();
				me.loadData();
			}, 500);
		},
			gotopage2(e) {
				let url = e.currentTarget.dataset.url;
				if (url == '/pages/classify/classify') {
					uni.switchTab({
						url: url
					});
				} else {
					uni.navigateTo({
						url: url
					});
				}
			},
			goSeach(value){
				this.kw = value;
			},
			classChange(_index){
				if(_index !== this.l_index){
					this.l_index = _index;
				}
			},
			gotopage3(e){
				let item = e.currentTarget.dataset.item;
				this.gotopage1(item);
			},
			gotopage1(item) {
				var that = this;
				if (item.type == 1) {
					uni.navigateTo({
						url: '/pages/goods/goods?id=' + item.t_id
					});
				} else if (item.type == 2) {
					uni.navigateTo({
						url: '/pages/notice/noticecontent?id=' + item.t_id
					});
					
				} 
				else if (item.type == 3) {
					uni.navigateTo({
						url: '/pages/list/list?cid=' + item.t_id
					});
					
				} 
				else if (item.type == 4) {
					uni.navigateTo({
						url: '/pages/list/list?type=' + item.t_id
					});
				
				} 
				else if (item.type == 5) {
					uni.navigateTo({
						url: '/pages/list/list?marks=' + item.t_id
					});	
					}
					else if (item.type == 6) {
						uni.navigateTo({
							url: item.t_id
						});	
						}
				else {
					return;
				}
			}
		}
	}
</script>

<style lang="scss">
page{
	background: #F8FAF9 !important;
}
.bg_img{
	position: fixed;
	z-index: 1;
	top: 0;
	left: 0;
	width: 100%;
	height: calc(13vh + 11vw + 120rpx);
}
.headBar{
	width: 100%;
	height: calc(var(--status-bar-height) + 18vh + 11vw);
	padding:calc(var(--status-bar-height)) 30rpx 0;
	position: fixed;
	display: flex;
	z-index: 99;
	overflow: hidden;
	.h_bg_img{
		position: absolute;
		z-index: 0;
		width: 100%;
		height: calc(13.5vw + var(--status-bar-height));
		top: 0;
		left: 0;
		background: linear-gradient(to bottom, #E7F5F5, #F9FFFF);
	}
	.h_con{
		flex: 1;
		position: relative;
		z-index: 10;
		.h_title{
			width: 100%;
			height: 10vw;
			line-height: 8vw;
			font-size: 38rpx;
			color: #333;
			text-align: center;
			font-weight: bold;
		}
		.h_input_box{
			flex: 1;
			background: #FFFFFF;
			border-radius: 2vw;
			display: flex;
			align-items: center;
			padding: 0 25rpx 0 0;
			border: 1px solid #4D726F;
			.h_icon{
				font-size: 40rpx;
				color: #999999;
			}
			.h_logo{
				width: 4vw;
			}
			.h_input{
				flex: 1;
				height: 11vw;
				line-height: 11vw;
				padding: 0 2vw;
				color: #333333;
				font-size: 30rpx;
			}
		}
		.h_icon_box{
			width: 100%;
			height: 9vw;
			display: flex;
			align-items: center;
			justify-content: space-between;
			.h_i_box{
				display: flex;
				align-items: center;
				color: #ffffff;
				position: relative;
				.h_i_icon{
					font-size: 30rpx;
				}
				.h_i_txt{
					font-size: 24rpx;
					padding-left: 10rpx;
				}
			}
			.h_i_box:not(:last-of-type):after{
				content: '';
				position: absolute;
				height: 3vw;
				width: 1rpx;
				background: #ffffff;
				right: -3.5vw;
				bottom: 0;
			}
		}
	}
}
.contentItem{
	padding:calc(var(--status-bar-height) + 8vh + 11vw) 0 40rpx;
	position: relative;
	z-index: 98;
	.ad_item{
		width: 100%;
		.hot_item{
			width: 100%;
			height: 270rpx;
			padding: 10rpx 30rpx;
			position: relative;
			z-index: 99;
			background: #FF193E;
			.hot_swiper_box{
				width: 100%;
				height: 70rpx;
				.hot_s_box{
					width: 100%;
					height: 70rpx;
					.hot_txt{
						width: 100%;
						height: 60rpx;
						font-size: 30rpx;
						line-height: 60rpx;
						text-align: center;
						color: #FFFFFF;
					}
				}
			}
		}
		.ad_img_item{
			width: 100%;
			height: 240rpx;
			position: relative;
			z-index: 3;
			padding: 0 30rpx;
			.ad_swiper_box{
				width: 100%;
				height: 100%;
				border-radius: 25rpx;
				overflow: hidden;
				.ad_s_box{
					width: 100%;
					height: 100%;
					.ad_img{
						width: 100%;
						height: 100%;
						border-radius: 25rpx;
					}
				}
			}
		}
	}
	.main_item{
		width: 100%;
		padding: 0 30rpx;
		background: #F8FAF9;
		.menu_item{
			width: 100%;
			display: flex;
			align-items: center;
			flex-wrap: wrap;
			.menu_box{	
				width: 25%;
				text-align: center;
				padding-top: 25rpx;
				.m_img{
					width: 100rpx;
					height: 100rpx;
					border-radius: 40%;
				}
				.m_txt{
					width: 100%;
					font-size: 24rpx;
					padding-top: 10rpx;
					color: #333333;
					font-weight: bold;
				}
			}
		}
		.menu2_item{
			width: 100%;
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-top: 30rpx;
			.class_box:not(:first-of-type){
				margin-left: 15rpx;
			}
			.class_box{
				text-align: center;
				padding: 20rpx;
				background: #ffffff;
				border-radius: 15rpx;
				display: flex;
				align-items: center;
				.c_txt{
					font-size: 22rpx;
					text-align: left;
					color: #333333;
					font-weight: bold;
				}
				.c_img{
					width: 11vw;
				}
			}
		}
		.new_item{
			width: 100%;
			height: 90rpx;
			border-radius: 25rpx;
			display: flex;
			align-items: center;
			background: #FFFFFF;
			padding: 0 30rpx;
			margin-top: 30rpx;
			position: relative;
			.new_tit_logo{
				font-size: 40rpx;
				color: #4D726F;
			}
			.new_swiper_box{
				flex: 1;
				margin-left: 20rpx;
				height: 40rpx;
				position: relative;
				.n_s_box{
					width: 100%;
					overflow:hidden;
					text-overflow:ellipsis;
					display:-webkit-box; 
					-webkit-box-orient:vertical;
					-webkit-line-clamp:1; 
					.new_txt{
						font-size: 28rpx;
						color: #333333;
						line-height: 40rpx;
					}
				}
			}
			.n_more{
				font-size: 40rpx;
				display: flex;
				align-items: center;
				margin-left: 15rpx;
				color: #dddddd;
			}
		}
		.block_item{
			width: 100%;
			margin-top: 40rpx;
			display: flex;
			.b_icon{
				font-size: 40rpx;
				color: #999999;
				font-weight: 500;
			}
			.b_tit{
				display: flex;
				color: #333333;
				font-size: 32rpx;
				font-weight: bold;
				.b_l_t{
					flex: 1;
				}
			}
			.b_txt{
				color: #666666;
				font-size: 26rpx;
				padding-top: 20rpx;
			}
			.b_left{
				flex: 1;
				display: flex;
				flex-direction: column;
				justify-content: space-between;
				.b_l_box{
					display: flex;
					flex: 1;
					background: #FFFFFF;
					border-radius: 25rpx;
					padding: 20rpx;
					align-items: center;
					.b_l_img{
						width: 50%;
					}
					.b_lcon{
						margin-top: 20rpx;
					}
					.b_txt{
						font-size: 22rpx;
					}
				}
				.b_l_box:not(:first-child){
					margin-top: 20rpx;
				}
			}
			.b_right{
				flex: 1;
				margin-left: 20rpx;
				display: flex;
				flex-direction: column;
				justify-content: space-between;
				.b_r_box{
					display: flex;
					flex: 1;
					background: #FFFFFF;
					border-radius: 25rpx;
					padding: 20rpx;
					align-items: center;
					.b_r_img{
						width: 50%;
					}
					.b_icon{
						margin-top: 20rpx;
					}
					.b_txt{
						font-size: 22rpx;
					}
				}
				.b_r_box:not(:first-child){
					margin-top: 20rpx;
				}
			}
		}
		.re_item{
			width: 100%;
			margin-top: 40rpx;
			.re_title{
				width: 100%;
				display: flex;
				align-items: center;
				padding-bottom: 25rpx;
				.re_t_t{
					flex: 1;
					font-size: 34rpx;
					font-weight: bold;
					color: #333333;
				}
				.re_more{
					color: #999999;
					font-size: 26rpx;
					display: flex;
					align-items: center;
					.re_t_icon{
						font-size: 32rpx;
						margin-left: 15rpx;
					}	
				}
			}
			.re_con{
				width: 100%;
				overflow: hidden;
				overflow-x: auto;
				white-space: nowrap;
				background: #FFFFFF;
				padding: 25rpx 0;
				border-left:25rpx solid #FFFFFF;
				border-right:25rpx solid #FFFFFF;
				border-radius: 25rpx;
				.re_goods{
					width: 280rpx;
					padding: 10rpx 15rpx;
					display: inline-block;
					vertical-align: top;
					.r_g_img{
						width:280rpx;
						height: 260rpx;
						border-radius: 15rpx;
					}
					.r_g_tit{
						width: 100%;
						overflow: hidden;
						text-overflow: ellipsis;
						white-space: nowrap;
						font-size: 26rpx;
						color: #333333;
						padding-top: 15rpx;
					}
					.r_g_price{
						width: 100%;
						display: flex;
						align-items: center;
						padding: 20rpx 0;
						.r_price1{
							font-size: 30rpx;
							color: #F83333;
							flex: 1;
							font-weight: bold;
						}
						.r_price2{
							font-size: 24rpx;
							color: #999999;
						}
					}
					.r_g_btn{
						width: 100%;
						padding: 12rpx 0;
						text-align: center;
						font-size: 26rpx;
						color: #ffffff;
						background: #FF0201;
						border-radius: 10rpx;
					}
				}
			}
		}
		.po_item{
			width: 100%;
			margin-top: 40rpx;
			.po_title{
				width: 100%;
				display: flex;
				align-items: center;
				padding-bottom: 15rpx;
				.po_t_t{
					flex: 1;
					font-size: 32rpx;
					font-weight: bold;
					color: #333333;
				}
				.po_more{
					color: #999999;
					font-size: 28rpx;
					display: flex;
					align-items: center;
					.po_t_icon{
						font-size: 35rpx;
						margin-left: 15rpx;
					}	
				}
			}
			.po_con{
				width: 100%;
				.po_goods{
					width: 100%;
					margin-top: 20rpx;
					background: #FFFFFF;
					border-radius: 20rpx;
					display: flex;
					align-items: center;
					padding: 30rpx;
					.po_g_img{
						width: 27vw;
						height: 27vw;
						border-radius: 15rpx;
					}
					.po_box{
						flex: 1;
						margin-left:30rpx;
						.p_b_title{
							width: 100%;
							font-size: 30rpx;
							color: #333333;
							overflow:hidden; 
							text-overflow:ellipsis;
							display:-webkit-box; 
							-webkit-box-orient:vertical;
							-webkit-line-clamp:1; 
						}
						.p_b_txt{
							padding-top: 25rpx;
							display: flex;
							.p_b_t1{
								flex: 1;
								color: #999999;
								font-size: 28rpx;
							}
						}
						.p_b_price{
							width: 100%;
							padding-top: 25rpx;
							display: flex;
							align-items: flex-end;
							.p_b_p1{
								font-size: 32rpx;
								color: #F83333;
								font-weight: bold;
							}
							.p_b_p2{
								flex: 1;
								margin-left: 25rpx;
								font-size: 28rpx;
								color: #999999;
								text-decoration: line-through;
							}
						}
						.p_b_star{
							width: 100%;
							display: flex;
							align-items: center;
							color: #FF193E;
							padding-top: 25rpx;
							.p_b_s_txt{
								font-size: 30rpx;
							}
							.p_b_s_icon:not(:first-child){
								margin-left: 15rpx;
							}
							.p_b_s_icon{
								font-size: 30rpx;
							}
						}
					}
				}
			}
		}	
		.banner_item{
			width: 100%;
			margin-top: 35rpx;
			overflow: hidden;
			.b_img{
				width: 100%;
				border-radius: 20rpx;
			}
		}
		.class_item{
			width: 100%;
			margin-top: 40rpx;
			.class_title{
				width: 100%;
				display: flex;
				align-items: center;
				padding-bottom: 30rpx;
				.c_icon{
					font-size: 42rpx;
					color: #FF0200;
				}
				.c_t_logo{
					width: 4vw;
				}
				.c_t_t{
					flex: 1;
					font-size: 34rpx;
					font-weight: bold;
					color: #333333;
					padding: 0 10rpx;
				}
				.c_more{
					color: #999999;
					font-size: 26rpx;
					display: flex;
					align-items: center;
					.c_m_icon{
						font-size: 32rpx;
						margin-left: 15rpx;
					}	
				}
			}
			.c_list{
				width: 100%;
				font-size: 0;
				column-count: 2;
				column-gap: 30rpx;
				-webkit-column-count:2;
				-moz-column-count:2;
				.ad_box{
					width: 100%;
					page-break-inside: avoid;
					display: inline-block;
					.ad_img{
						width: 100%;
					}
				}
				.c_l_box{
					width: 100%;
					background: #FFFFFF;
					border-radius: 20rpx;
					padding: 20rpx;
					overflow: hidden;
					margin-top: 30rpx;
					page-break-inside: avoid;
					.c_l_b_img{
						height: 40vw;
						border-radius: 15rpx;
					}
					.c_l_b_tit{
						padding: 20rpx 0 0;
						font-size: 30rpx;
						font-weight: bold;
						overflow:hidden; 
						text-overflow:ellipsis;
						display:-webkit-box; 
						-webkit-box-orient:vertical;
						-webkit-line-clamp:2; 
						color: #333333;
					}
					.c_l_b_p1{
						display: flex;
						align-items: flex-end;
						padding-top: 20rpx;
						.p1_t1{
							font-size: 28rpx;
							font-weight: 500;
							color: #F83333;
							padding-right: 5rpx;
						}
						.p1_t2{
							font-size: 34rpx;
							font-weight: bold;
							color: #F83333;
							padding-right: 20rpx;
						}
						.p1_logo{
							background: #F83333;
							color: #ffffff;
							font-size: 24rpx;
							padding: 4rpx 12rpx;
							border-radius: 16rpx 16rpx 16rpx 0;
							position: relative;
							&::before{
								content: '';
								position: absolute;
								bottom: 0;
								left: -10rpx;
								border-left: 17rpx solid transparent; 
								border-right: 0 solid transparent; 
								border-bottom: 12rpx solid #F83333;
							}
						}
					}
					.c_l_b_p2{
						color: #BFC0BE;
						font-size: 26rpx;
						display: flex;
						align-items: center;
						padding-top: 10rpx;
						.p2_t1{
							flex: 1;
							text-decoration: line-through;
						}
						.p2_t2{
							
						}
					}
				}
			}
		}
	}
}
.mask{
	width: 100%;
	height: 100vh;
	background: rgba(0, 0, 0, .6);
	position: fixed;
	z-index: 99;
	top: 0;
	left: 0;
	padding: 0 10%;
	.mask_box{
		width: 100%;
		height: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		.mask_con{
			width: 100%;
			background: #FFFFFF;
			border-radius: 20rpx;
			padding: 30rpx 60rpx;
			margin-top: -5vh;
			.mask_head{
				width: 100%;
				display: flex;
				padding-bottom: 30rpx;
				.mask_h_t{
					font-size: 40rpx;
					font-weight: bold;
					color: #333333;
					flex: 1;
					padding-top: 40rpx;
				}
				.mask_h_img{
					width: 30vw;
				}
			}
			.mask_txt{
				width: 100%;
				min-height: 15vh;
				max-height: 25vh;
				overflow: hidden;
				overflow-y: auto;
				.mask_node{
					width: 100%;
				}
			}
			.mask_btn{
				width: 100%;
				display: flex;
				align-items: center;
				justify-content: space-around;
				padding-top: 30rpx;
				.m_btn{
					width: 200rpx;
					height: 70rpx;
					line-height: 70rpx;
					color: #ffffff;
					font-size: 30rpx;
					background: #38cf95;
					border-radius: 40rpx;
					text-align: center;
				}
			}
		}
	}
}
.footer{
	width: 100%;
	padding: 40rpx 4% 30rpx;
	.txt1{
		width: 100%;
		font-size: 28rpx;
		color: #bcbcbc;
		text-align: center;
		padding-top: 5rpx;
	}
	.txt2{
		width: 100%;
		font-size: 35rpx;
		color: #afafaf;
		font-weight: bold;
		text-align: center;
		padding-top: 20rpx;
		padding-bottom: 15rpx;
		border-top: 1rpx solid #e7e7e7;
		.t_name{
			padding: 0 50rpx;
			background: #F8F8F8;
			position: relative;
			z-index: 2;
		}
	}
}
</style>
